package sample.sharding;

import java.util.Collection;
import java.util.Date;

import org.apache.shardingsphere.api.sharding.standard.PreciseShardingAlgorithm;
import org.apache.shardingsphere.api.sharding.standard.PreciseShardingValue;

/**
 * @date 2020/8/29
 */
public class DateShardingAlgorithm implements PreciseShardingAlgorithm<Date> {

	public String doSharding(Collection<String> availableTargetNames, PreciseShardingValue<Date> shardingValue) {
		return "batch_job_instance_1";
	}
}
